<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <!-- 引入 Bootstrap -->
      <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
 <c:url var="url" value="static/css/globe.css"/>
	<link rel="stylesheet" type="text/css" href="${url}"> 
      <!-- HTML5 Shim 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
      <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
      <!--[if lt IE 9]>
         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
         <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
      <![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body background="001.jpg">
<div class="container">
	<div class="col-md-12 column">
		<h3 class="text-center">欢迎教师登录考试系统</h3>
			<div class="tabbable" id="tabs-28077">
				<ul class="nav nav-tabs">
					<li class="active">
						 <a href="../teacher/qk.jsp" data-toggle="tab">学生练习次数</a>
					</li>
                                <li>
						 <a href="../teacher/score.jsp" data-toggle="tab">学生练习分数</a>
					</li>
					<li>
						 <a href="../teacher/qdb.jsp" data-toggle="tab">操作题库</a>
					</li>
                                <li>
						 <a href="../teacher/grant.jsp" data-toggle="tab">申请操作</a>
					</li>
				</ul>
			</div>
					<div class="tab-pane active" id="panel-312119">
						<p><br><h4>查询各班级学生练习的情况（如某学生练习过几道题目等）导出学生测试表</h4><br>
						</p>
					</div>
			<div class="span12">
            <form action="${pageContext.request.contextPath }/servlet/QuestionContrllor?contrltype=2" method="post">
				  <table width="100%" border="0" cellspacing="0" cellpadding="0">
				    <tr>
				      <td width="160"><input type="text" name="sno" placeholder="请输入学生的学号"  value="${sno}"/></td>
		              <td align="center"><input type="submit" value=" 查询 " class="btn btn-primary" /> </td>		
                      <td width="500">&nbsp;</td>              </tr>
				    </table>
            </form>
		</div><br><br>
        <div class="span13">
       
		  <table width="100%" border="1" cellspacing="0" cellpadding="0" class="table table-hover">  
		    <tr>
              
		      <td>题目序号</td>
		      <td>题干</td>
		      <td>学生答案</td>
              <td>是否正确</td>
              <td>正确答案</td>
              <td>时间日期</tr>
<c:forEach items="${lists}" var="item">
<tr>
	<td class="success">${item.questionnumber }</td>
	<td class="warning">${item.tigan }</td>
      <td class="info">${item.studentanswer}</td> 
      <td class="error">${item.isright}</td> 
	<td class="warning">${item.righttanswer}</td>
	<td class="success">${item.compeledtime}</td>	
</tr>

</c:forEach>
		    </table>
			</div>		
	</div>
</div>
<!-- jQuery (Bootstrap 的 JavaScript 插件需要引入 jQuery) -->
      <script src="https://code.jquery.com/jquery.js"></script>
      <!-- 包括所有已编译的插件 -->
      <script src="js/bootstrap.min.js"></script>
</body>
</html>
